<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<p>单击按钮以显示警告弹出框：</p>
		
		<button onclick="myFunc()">
			alert
		</button>
		
		<script>
			function myFunc(){
				alert("Hello Word");
			}
		</script>
	</body>
</html>